Citadel Securities Interview Question

Python trivia and an algorithms/data structures problem