In a certain code language, codes are decided on the basis of following rules and conditions.
1. All the consonants that appear before ‘N’ in alphabet series are to be coded as 0-9.(B =0, C =1, D= 2 and so on)
2. All the consonants that appear after ‘N’ in alphabet series are to be coded as 0-9.(P = 0, Q=1, R=2 and so on)
3. ‘N’ is to be coded as 1.
I. If a word starts with a vowel but ends with a consonant then all the vowels of that word are to be coded as ‘@’ and codes for last and first letters will be interchanged.
II. If a word has more than two vowels then the first vowel is to be coded as *, second vowel as +, third vowel as -, and then repeat the codes in the same sequence from fourth vowel onwards.
III. If in a word a consonant that appears right after P is followed by a vowel then all the vowels of that word are to be coded as ‘!’ and 1 is subtracted from the original code of all consonants.
IV. If none of the above conditions are applicable in a word then vowels of such word are coded as ‘#‘.
V. If more than one condition is applicable in a single word then apply all the conditions as per the given order.
Q. What is the code for the word KINGDOM