Kata: Complete the method which returns the number which is most frequent in the given input array. If there is a tie for most frequent number, return the l