Agoda Interview Question

Prove the probability of a test scenario