Build a simple two column table of real word to code word first, then just look up the answer instead of applying the code step by step.
The lookup table quickly shows only 'sky' lines up with the real word 'tree'.
Let's summarize:
So a fruit grows on 'sky' according to this code.