Biglight Interview Question

To refactor my code in real time