VisAI Labs interview question

Puzzles related to probability, Some leetcode easy question