Pregunta de entrevista de Trainline

A snippet of code for code reviewing exercise