Wise interview question

On leetcode, typical coin toss questions