Qualcomm interview question

What C code that reverses an array in-place