Pergunta de entrevista da empresa Citadel Securities

Python trivia and an algorithms/data structures problem