human
Replace every vowels with lexicographically next vowel in a String | Function to replace every vowel with next vowel lexicographically.
Storing the vowels in the map with custom numbers showing their index.
Iterate over the string.
If the current character is a vowel Find the index in Hash and Replace it with next vowel from Hash.
Driver function"
Solution in Python:
assistant
#Here is code to replace every vowels with lexicographically next vowel in a String and the other steps required.
 def print_next_vovel_string ( st ) :
	m = { }
	m [ ' a ' ] = 0
	m [ ' e ' ] = 1
	m [ ' i ' ] = 2
	m [ ' o ' ] = 3
	m [ ' u ' ] = 4
	arr = [ ' a ' , ' e ' , ' i ' , ' o ' , ' u ' ]
	N = len ( st )
	for i in range ( N ) :
		c = st [ i ]
		if ( c == ' a ' or c == ' e ' or c == ' i ' or c == ' o ' or c == ' u ' ) :
			index = m [ st [ i ] ] + 1
			newindex = index % 5
			st = st . replace ( st [ i ] , arr [ newindex ] , 1 )
	return st
if __name__ == " _ _ main _ _ " :
	st = " geeksforgeeks "
	print ( print_next_vovel_string ( st ) )