AKUNA CAPITAL interview question

leetcode mediem, textbook probability question