Code not passing the test case

this code is passing the sample test case but not the hidden test cases. https://ide.codingblocks.com/s/261128

hello @ayusdas2000

checking … . . . … . . .

intiialsie ur call diff with some big value

check ur updated code->