One test case failing

Below code is causing one test case to fail. Checked the algorithm video and code done seems to be in sync.

Kindly check and help me spot the error.

hello @PThak2018
use long in place of int and then try

something is wrong with the test case. even editorial solution is not working.
try to submit it on leetcode

Working on Leetcode. Must be an issue with test case.

Thanks:)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.