Citadel Securities interview question

Python trivia and an algorithms/data structures problem