maximum repeating number in a array in O(n) time and O(1) space