human
Check if string can be made lexicographically smaller by reversing any substring | Function that returns true if s can be made lexicographically smaller by reversing a sub - string in s.
Traverse in the string.
Check if s [ i + 1 ] < s [ i ].
Not possible.
Driver code"
Solution in Python:

Can you provide a code to check if string can be made lexicographically smaller by reversing any substring and the other steps required?
assistant
#Here is code to check if string can be made lexicographically smaller by reversing any substring and the other steps required.
 def check ( s ) :
	n = len ( s )
	for i in range ( n - 1 ) :
		if ( s [ i ] > s [ i + 1 ] ) :
			return True
	return False
if __name__ == ' _ _ main _ _ ' :
	s = " geeksforgeeks "
	if ( check ( s ) ) :
		print ( " Yes " )
	else :
		print ( " No " )