What wrong in this code

i write the code and dont know what wrong in this code please guide me ehat wrong and what reason for the failure

@pritamkumar1802_a2f270a501ad65bd You should take every input and give every output in long instead of int because the input and output can be very large.

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.