Goldman Sachs Interview Question

Easy to Medium level Dsa and SQL