Pregunta de entrevista de Bloomberg

2 Questions related to data structures and algorithms.