What is the problem in this code?

@rohitkandpal683
your code is correct, just use long long int instead of int.
Also please mark this doubt as resolved after getting your code accepted