Moody's Interview Question

solve a probability question