Correct option is D
Logic:
Vowels → Keep their position value.
Consonants → Add 1 to their position value.
RAINBOW → S19OC15X
R (18) → S (18 + 1 = 19)
A (1) → 1 (vowel, stays the same)
I (9) → 9 (vowel, stays the same)
N (14) → O (14 + 1 = 15)
B (2) → C (2 + 1 = 3)
O (15) → 15 (vowel, stays the same)
W (23) → X (23 + 1 = 24)
SUNSHINE → T21OTI905
S (19) → T (19 + 1 = 20)
U (21) → 21 (vowel, stays the same)
N (14) → O (14 + 1 = 15)
S (19) → T (19 + 1 = 20)
H (8) → I (8 + 1 = 9)
I (9) → 9 (vowel, stays the same)
N (14) → O (14 + 1 = 15)
E (5) → 5 (vowel, stays the same)
MOONLIGHT → N1515OM9HIU
M (13) → N (13 + 1 = 14)
O (15) → 15 (vowel, stays the same)
O (15) → 15 (vowel, stays the same)
N (14) → O (14 + 1 = 15)
L (12) → M (12 + 1 = 13)
I (9) → 9 (vowel, stays the same)
G (7) → H (7 + 1 = 8)
H (8) → I (8 + 1 = 9)
T (20) → U (20 + 1 = 21)
Correct answer: (d) N15150M9HIU