Pregunta de entrevista de Microsoft

Optimize the following C code to decrease the overall O value