Goldman Sachs interview question

Popular leetcode questions medium difficulty