Pergunta de entrevista da empresa ClaySys Technologies

Purely based on the problem they given