WA in PSHOT

Hey guys,
Can someone please help me in figuring out the bug in my code: CodeChef: Practical coding for everyone
Thanks.