BlackRock Interview Question

Data structure and algorithm problems, quite typical