WA words1 - play on words

hey… m getting wa for words1 … i tried many cases… couldn’t find one giving wrong ans… please help me with ths… thank you…!
here the link
http://www.codechef.com/viewsolution/2294378