Goldman Sachs Interview Question

3 coding questions were asked