Pergunta de entrevista da empresa Arm

How would you rewrite the given C code.