AKUNA CAPITAL Interview Question

leetcode mediem, textbook probability question