Goldman Sachs Interview Question

Good, the questions were in DS and Algorithms