PALIN: help needed!

Please help me with my code, I have tried to solve it in a different way than all the other solutions available.

Click to view my solution