In a code, each letter moves 3 places forward (A→D, B→E, …)
In a code, each letter moves 3 places forward (A→D, B→E, ...). The coded word is "FDW". To decode it, Mahir moves each letter 3 places back and gets "CAT". His friend says the rule is "forward", so decoding should also go 3 forward, giving "IGZ". What is the real word?
Who do you think is right? Pick one.
The answer: "CAT", as Mahir found
Why
The friend remembered the rule correctly — 3 places forward. But that rule was used to MAKE the code. To read the code, you have to undo it, and undoing a step means doing the opposite: 3 places back. F goes back to C, D back to A, W back to T, giving "CAT". Going forward again just codes the word a second time. Test: code "CAT" yourself with +3 — C→F, A→D, T→W gives "FDW", exactly the coded word, which proves "CAT" is the original. Mahir is right: decoding reverses the rule, so the word is "CAT".
On Socho, you explain your thinking out loud and a coach asks about YOUR reasoning — one question a day, free, in Hindi, Hinglish or English.
Try a question on Socho →More disagreements in Coding-Decoding