it failed first three test cases
@Anushka_Jha use long long int instead of int
Don’t forget to mark it resolved once your doubt is cleared
hey @Anushka_Jha if your doubt is cleared please mark it as resolved