Cognizant Interview Question

sort the elements of a array using pointer