Pregunta de entrevista de Tavant

As usual Java, Collections etc