Bloomberg interview question

2 Questions related to data structures and algorithms.