Unable to pass Two of the Test Cases

To the Mentors/TAs,

Kindly let me know where I am going wrong with the solution. I am unable to pass two of the test cases.

Thank you,

Sandeep