Pergunta de entrevista da empresa Goldman Sachs

- 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