Amiq interview question

What would you improve to your code