Pergunta de entrevista da empresa Thoughtworks

Few data structures problem