Goldman Sachs interview question

LeetCode medium level problem solving questions