Microsoft Interview Question

Asked to fix bugs and optimize in a custom class in typescript/c#