Arm interview question

the optimization about if-else statement of C/C++ code