Majority Element Voting

Given a non-empty array of integers, return the value that appears more than half the time.

Examples
Input: [3,2,3]
Output: 3
Hints

Majority Element Voting

Given a non-empty array of integers, return the value that appears more than half the time.