Microsoft Interview Question

Return the number which: 1. appears the most in a given array 2. more than the array's length divided by two.