All test cases didnt passed

please check my code and tell where is the mistakeā€¦
codeā€“>https://ide.codingblocks.com/s/669615

hi @yamangoyal100_ff74db54bdf01539 logic is not correct
refer