Eaton Interview Question

wasn't expecting the code review question