CU Direct interview question

How would you improve this code?