Pregunta de entrevista de Tessella

Java exercise which was quite simple using inheritance etc.