Goldman Sachs Interview Question

Clarify the problem statement thoroughly