C++
Consider the declaration double a[10] = {1.2, 2.1, 3.3, 3.5,
4.5, 7.9, 5.4, 8.7, 9.9, 1.0}; Write a function named out_of_order
that will test this array for the condition a[0] <= a[1] <=
a[2] <=... that returns the index of the first element that is
out of order (7.9). Also develop the int main() and function call.
Use the variables array[] and size and any other variables you may
need.