Find the element that occurs the most in an array