Problem : https://codeforces.me/problemset/problem/1040/B
Solution : https://codeforces.me/contest/1040/submission/91739502
It is mentioned in the problem statement that for test case 2 answer 2 5 is also correct but the jury is saying it wrong. Why is it so? Can someone help?