Replace S [ i ] with vow [ j ] iif S [ i ] is a vowel , and increment j by 1
if ( S [ i ] == ' a ' S [ i ] == ' e ' S [ i ] == ' i ' S [ i ] == ' o ' S [ i ] == ' u ' ) { S = S . Substring ( 0 , i ) + tempArray [ j ++ ] + S . Substring ( i + 1 , n - i - 1 ) ; } }