Pergunta de entrevista da empresa Bloomberg

2 Questions related to data structures and algorithms.