AUTO1 Group interview question

Was given a vanilla code class and asked to do refactoring online.