Bloomberg Interview Question

2 Questions related to data structures and algorithms.