Sum it up problem


can you check if there is any test case for which this logic will not work.

@dishask99 Your code is correct and working fine oin all test cases and i have even submitted the code ,it is working on all test cases