Getty Images Interview Question

Refactoring sloppy code