Pergunta de entrevista da empresa American Express

Question on probability and a puzzle