Atlassian interview question

Data structure - ranked voting system