Qualcomm Interview Question

What C code that reverses an array in-place