About Test cases

My code gets wrong in 2 test cases, can you help in this where am i making mistakes?