Ambarella interview question

Rewrite the code for better ARM system performance