added solution to find most repetitions in an int array