query on the string

codechef compiler gives successfully executed…netbeans is giving right answer for test cases
still NZEC for last 16 attempts…plzz help…m gng nuts !!