In C++ create a ten element array on the heap. Please use the following values for the array elements.
10, 12, 52, 36, 18, 75, 21, 3, 1, 99
After the array is created and loaded, the problem is then to sort the array and print out the contents of the sorted array.
Please use a separate function for the sort routine and also a separate function for the print out of the array.
Don't forget to delete the array prior to exiting the program.