Why my test cases aren't passing?


This is the code and till now no TA has been able to answer it they just post their code