write the definition of the function rotate() as a member function of the class darray. the function passes an index and rotates the elements in the array to the left, making the value at the index specified be the first value of the array.. parameter: a variable of type int. assumption: the list has at least one element (node). example - array is: { 87, 45, 89, 23, 18, 90, 82, 12, 25, 33, 51, 40, 45, 88 } - parameter passed: 10 - (all values are rotated to the left so that 51, the value at index 10, becomes the first value in the array.) - array becomes: { 51, 40, 45, 88, 87, 45, 89, 23, 18, 90, 82, 12, 25, 33 }