In a certain code language, the letters are coded as per their alphabetical order (A as 1 and Z as 26). However, if a letter appears twice in a word, at the second occurrence, it is coded with its reverse alphabetical position. Also, if a vowel appears between two consonants, its corresponding number gets doubled. Which among the following is the correct code for GLASS?
In a certain code language, the letters are coded as per their alphabetical order (A as 1 and Z as 26). However, if a letter appears twice in a word, at the second occurrence, it is coded with its reverse alphabetical position. Also, if a vowel appears between two consonants, its corresponding number gets doubled. Which among the following is the correct code for GLASS? Correct Answer 7122198
[ alt="alpha teb" src="//storage.googleapis.com/tb-img/production/22/07/alpha%20teb.png" style="width: 490px; height: 110px;">
The logic followed here is:
- if a letter appears twice in a word, at the second occurrence, it is coded with its reverse alphabetical position → So, 'S', the last letter is coded as 8 as the reverse alphabetical position of S is 8.
- if a vowel appears between two consonants, its corresponding number gets doubled → So, A is coded as 2 as the corresponding number of A is 1.
- The remaining letters are coded as per their alphabetical order; so G is coded as 7, L is coded as 12 and S is coded as 19.
[ alt="F1 Savita Railways 11-7-22 D29" src="//storage.googleapis.com/tb-img/production/22/07/F1_Savita_Railways_11-7-22_D29.png" style="width: 172px; height: 107px;">
Hence, ‘7122198’ is the correct answer.