Write a program that allows user to enter number of elements in an array. The program then allows user to enter the elements. Write a function called max that returns the position of the maximum element in the array, function called min that returns the minimum value position in the array (use return by reference) then write a function called swap that swaps the min and max then finally write a function called heap sort that uses heap sort algorithm to sort the elements in the array in a semi order.