Arm interview question

How would you rewrite the given C code.