Storing the distinct vowels in the String by checking if it in the list of String and not in the list of distinct vowels
for ( let i = 0 ; i < length ; i ++ ) { if ( find ( x , str [ i ] ) && ! find ( y , str [ i ] ) ) y . push ( str [ i ] ) ; }