Cognovi Labs interview question

Live coding, basic probability questions