Pregunta de entrevista de ClaySys Technologies

Purely based on the problem they given