Crack Me If you Can

https://www.codechef.com/viewsolution/33729780

Why is my solution wrong for Voritex and String?
Please help