NVIDIA interview question

1. Reverse the contents in an array in C