Assuming you have an array of numbers that need to be sorted and the following two conditions are true: