Why arent only two testcases not passing?

Did i miss some corner case ?

hey, can you provide me the code?


fixed and added comments
very minor mistake

appreciation, ur code was very clean and understandable