Pocket Gems Interview Question

Brain teaser on probability