Amazon interview question

Probability Questions