Atlassian Interview Question

basically LC 1366 Rank Teams by Votes