Pergunta de entrevista da empresa Vimond Media Solutions

Basic mathematical problem to implement as a take home assignment .