working only for the given test case
hello @bhattanurag426 pls save ur code at cb ide and share it with me
use long long in place of int and then try