Chargebee interview question

probability question