Goldman Sachs Interview Question

calculus, probability, and programming from leetcode