Pregunta de entrevista de Bloomberg

all basic algorithms and data structure questions.