Pregunta de entrevista de Starkey

Explain an algorithm to compute the mode of an array.