Help regarding Even_Edge subtask 1 6th test case failing why?

Can anyone help me out why 6th test case of subtask 1 giving the wrong answer.I have tried all the possibilities and checked all the test cases but still it’s failing.
Please help me out.
question link: https://www.codechef.com/OCT19B/problems/EVEDG
Here is link to my solution.Please check.
https://www.codechef.com/viewsolution/27180396