Google Interview Question

sort an array , reverse an array in place