write a C++ function called myfunction that takes three parameters as shown in the following prototype:-
void myfunction(int a[],int size,int n);
where the first parameter is an integer array and the second parameter is the size of the array and the third parameter means that your function will sort the first n elements of the array in ascending order and the rest of the elements in descending order.