Interactive Brokers interview question

data structure, puzzles, advanced java