Pregunta de entrevista de Vimond Media Solutions

Basic mathematical problem to implement as a take home assignment .