Chargebee Interview Question

probability question