J2: Getting wa

Can anyone give me some test case which conflict my code, I use dp.
problem link J2 Problem - CodeChef
code link http://pastebin.com/bcXSGYak