Pregunta de entrevista de Bloomberg

Questions on data structures and probability.