public static boolean isReverseSorted(char[] charArray) {
		
		for(int i = 0; i < charArray.length - 1 ; i++) {
			if(charArray[i] < charArray [i + 1]) {
				return false;
			}
			
		}
		
		return true;
	}
public static boolean isReverseSorted ( char [ ] charArray ) { for ( int i = 0 ; i < charArray . length - 1 ; i ++ ) { if ( charArray [ i ] < charArray [ i + 1 ] ) { return false ; } } return true ; }
Check if the char array is reverse sorted. It loops through the entire char
array once, checking that the elements are reverse sorted.

<br>
<br>

<i>Runtime: </i> O(n)

@param charArray the char array to check

@return <i>true</i> if the char array is reverse sorted, else <i>false</i>.