Biggest number of repetitions in sorted array

http://www.careercup.com/question?id=5104572540387328