Google interview question

sort an array , reverse an array in place