Election Winner
Given an array of candidate names representing votes, return the candidate with the most votes. If multiple candidates tie for the maximum number of votes, return the candidate whose first occurrence in the input array has the smallest index.