Why are some of the test cases failing?
@aastha2711 try using long long int everywhere in the code and tell if it works
It worked. Thankyou!
@aastha2711 np just mark it resolved