Xtremax interview question

how can you improve this flow?