Checking the code

sir can u please check my code and rectify the errors?

@kodivine0
use long long. see the constraints
mark your doubt as resolved and rate as well :slight_smile:

thank you so much…:slight_smile: