Goldman Sachs Interview Question

2 leetcode dsa hard question