Qualcomm Interview Question

Write a code to inverse an array!