WA in MARCHA?

I am getting correct output for all the test cases and i tested with every possible test case. Can someone help me. Here is the link to my code
http://www.codechef.com/viewsolution/6578811

You are getting wrong answer for the following testcase:

1

5 10

2

2

3

4

5

Your solution outputs “NO” (See here)but the correct answer is “YES” (2+3+5=10) .