Goldman Sachs interview question

Mostly easy and medium LeetCode questions