Pergunta de entrevista da empresa HSBC

Basic probability, algo, programming and finance questions.