All test case are not passed

My logic is right but all test case are not passed.
https://online.codingblocks.com/app/player/80000/content/150256/4788/code-challenge
You can see my code in my submission.

Ok wait will check @mayurjhode55

My doubt is not solved yet

@mayurjhode55 sorry forgot about it here corrected one small mistake

Why should i not use long long data type instead of int data type

@mayurjhode55 long long works fine too no issue

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.