Please check the code

heyy i m getting wrong answer on submission but it works fine with the given test case.

Hi @Aparna,
use long long int instead of int.
Ur test cases will pass.
Hope dis helps.


This is d updated code.

yes after changing to long it works, thanks!