Arm interview question

How can the following function in C be optimized