Goldman Sachs Interview Question

Two hackerrank programming challenge questions