Pergunta de entrevista da empresa Starkey

Explain an algorithm to compute the mode of an array.