Goldman Sachs interview question

LeetCode Data Structures and Algorithms Mathematical Statistical