Pregunta de entrevista de Bloomberg

Data Structures & Algorithm Question