Pergunta de entrevista da empresa Funcom

Too specific to the challenge's code to describe here. But in general relates to optimization.