Pregunta de entrevista de Bloomberg

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