Wise Interview Question

On leetcode, typical coin toss questions