Goldman Sachs interview question

Leetcode 200, probability/stats questions, object oriented design