Goldman Sachs interview question

Several Leetcode problems. Mostly easy and medium.