Google interview question

Probability problems