link to my solution
why for one test case it is showing wrong answer ?
hello @vishaaltiwari1999 use long long datatype.