Maximum repeating element in an array