Goldman Sachs Interview Question

Two leetcode questions: 1 Medium, 1 Hard