Pergunta de entrevista da empresa Tokopedia

How to optimize the previous coding test and code to find a number that has the most occurrence