Thoughtworks Interview Question

Code Refactoring