Goldman Sachs Interview Question

- Logical problem Also asked about time complexity based on the solutions given. 2. Given a class, figure out ways to improve the methods inside the class