Imagine i get two arrays as input, one of which is already sorted. I want to create a method which checks which array that is sorted and then returns it. Im not really sure how to do this

```
class Program
{
    public double[] a = new double[] { 1, 3, 4, 8, 21, 38 };
    public double[] b = new double[] { 1, 7, 19, 3, 2, 24 };

    public void CheckSorting()
    {
        if (/* if a is sorted */)
        {
            return a; 
        }
        else { /* This should be OK because if A isnt sorted then b MUST be sorted since of the arrays are always sorted in my input */
            return b;
        }
    }

    static void Main(string[] args)
    {
        Program checkSorting = new Program();
        checkSorting.CheckSorting();
    }
}

```

In this case, as you can see the array A should be returned as the sorted one