Barclays interview question

Probability question