Pregunta de entrevista de Virtusa

It's fully based on Java