Pregunta de entrevista de Sapiens

Basic Java,1 problem on programming, 1 problem apptitude