R3 Solutions Interview Question

How could you improve your code?