Test case for chef and words

Can some one give me some test case file for chef and words(CHEFWORD).
My code is giving runtime error on submission.
This is the link to code

http://www.codechef.com/viewsolution/5441956

It’s not easy for me to understand where the problem is, but here is the failing input - http://ideone.com/WKyLeR

Thanks @betlista.
Will sort it out.

1 Like