Test case for chef and words

help
chefword
code
python

#1

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


#2

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


#3

Thanks @betlista.
Will sort it out.