Traverse the string , S and push all the vowels to string vow
for ( var i = 0 ; i < n ; i ++ ) { if ( S [ i ] == ' ' S [ i ] == ' ' S [ i ] == ' ' S [ i ] == ' ' S [ i ] == ' ' ) { vow += S [ i ] ; } }