Given: "REASON" is coded as "TDDQSK".
Write positions of letters (A=1, B=2, ..., Z=26):
R(18) → T(20): +2
E(5) → D(4): −1
A(1) → D(4): +3
S(19) → Q(17): −2
O(15) → S(19): +4
N(14) → K(11): −3
So the rule is:
+2, −1, +3, −2, +4, −3 (alternating + and −, with magnitude increasing).
Now apply same rule to "PRAYER":
P(16) +2 → R(18)
R(18) −1 → Q(17)
A(1) +3 → D(4)
Y(25) −2 → W(23)
E(5) +4 → I(9)
R(18) −3 → O(15)
Hence, "PRAYER" is coded as:
RQDWIO.