Replacing the characters to get all Vowels
for ( int i = 0 ; i < length ; i ++ ) { if ( find ( x , str . charAt ( i ) ) && ! find ( y1 , str . charAt ( i ) ) ) { ans += str . charAt ( i ) ; y1 . add ( str . charAt ( i ) ) ; } else { ans += z . get ( cc ) ; cc ++ ; } if ( cc == z . size ( ) ) {