Pergunta de entrevista da empresa App Masters

They asked me to solve a small coding challenge involving arrays and objects.