Pregunta de entrevista de CivilSoft

problem solving question but very simple