Goldman Sachs Interview Question

Easy and medium leetcode questions