Vowel Spellchecker

easy
1. You will be given a wordlist and query words 2. You need to write a function that implements the following rules: a) If a word has the same characters as one of the words in wordlist, change the case of query word to the matched word in wordlist b) If a query word exactly matches the wordlist word, return the same query word c) If a query word has a macth in the wordlist, except vowel characters. Replace the ONLY vowels with corrected ones from wordlist d) If there is absoluetly no match for a query word in wordlist, return an empty string e)If the query matches a word up to capitlization, you should return the first such match in the wordlist. 3. Return the corrected words in an array of strings 4. Input and output is handled for you 5. It is a functional problem ,please do not modify main()

Input Format

Input is handled for you.

Output Format

Output is handled for you.

Constraints

1 <= length of wordlist array<= 5000
 1 <= length of queries array <= 5000
 1 <= length of each element of wordlist array<= 7
 1 <= length of each element of queries array <= 7

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
1
Ben
7
ben bEn beN bin ban BEN been
Output
Ben Ben Ben Ben Ben Ben
Previous
Unique Numbers
Next
Winner Of An Election

Related Questions