Pergunta de entrevista da empresa BlackRock

Some probability questions and need to solve some coding problems.