linked list

problem : http://www.codechef.com/problems/LUCKYSTR/
code: http://www.codechef.com/problems/LUCKYSTR/

the code is running for every test case i tried. But still getting Wrong Answer. need some test cases.
Topic archived. No new replies allowed.