Find element which appears maximum number of times in the ranged array