Pergunta de entrevista da empresa IBM

The programming challenge also involved a simple data structures problem.