carwow interview question

- code exercise - how would you improve it?