Question d’entretien chez Limeade

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