ALL TEST CASES ARE NOT GETTING PASSED

sir all test cases passed except 2 test case out of 7
https://hack.codingblocks.com/app/contests/2707/1314/problem