question: private static int [ ] maybeSort ( int [ ] values ) { if ( ! isSorted ( values , 0 , false ) ) { values = values . clone ( ) ; Arrays . sort ( values ) ; } return values ; }
target:  Clone and sort the array, if not already sorted. 