WA in WSTRING and DELISH

can someone tell me the case I am missing?

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

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