Goldman Sachs Interview Question

Problems similar to the ones on Hackerrank and LeetCode