Limeade interview question

Write a function to find the max count in a sorted array.