JPMorganChase interview question

Probability question, python, easy coding