Code link:
I am getting MLE error in first test case of Summing Sums problem. Can anyone please help?
@mgfags
That was a tough testcase which required some further optimisations to be solved. Since the difficulty level may have been a bit high, I have removed that testcase. Try running your code again.