Pergunta de entrevista da empresa Bloomberg

basic brain teasers, and fairly easy data structures