Pergunta de entrevista da empresa Atlassian

Finding a winner in election (votes given as array)