Test case 4, and test case 7 are failing

Hey @manideeppillli Your code is giving true for the output :
5
5
4
5
4
3
but it should be false.