Getting Wrong Ans on all test cases

i have run some custom test cases and code works fine on them
i am unable to spot error please help