2 Test Case are giving wrong answer

Two of the 10 test cases aren’t working, can you help me out in finding the situations where my code isn’t giving correct answer.

following is the link to my code-

I would suggest you to go through online video lecture on the problem and then implement your solution accordingly…

please tell whats wrong in my code - https://ide.codingblocks.com/s/195587