How to pass all test cases

Don’t know what is wrong with my code, please help

Share the question in which you are stuck .

thx but i sorted it myself