Goldman Sachs Interview Question

Leetcode 200, probability/stats questions, object oriented design