Bloomberg interview question

Hackerrank DSA questions. Strong with all the data structures and the algorithms