This problem Even Pair sum is taken from December long challenge 2020. let's read the problem statement.
4 1 1 2 3 4 6 8 9
1 3 12 36
Hint- There is Very big role of even odd in this problem.
In this problem we have to calculate even and odd numbers till A and B.
even +even =even
Here is my solution
Join Telegram Channel for solution.