Pregunta de entrevista de Arm

How would you rewrite the given C code.