Update FindMaxOccurence of a number in a given Array