Pregunta de entrevista de Thoughtworks

Few data structures problem