Bloomberg interview question

Questions on data structures and probability.