Pregunta de entrevista de Amazon

Asking probability question. Completely unexpected