finished hw assignment

I had to give up on the last question. I tried so many different ways to solve this.  Not sure what i'm doing wrong, but the last test should pass, I think, but it doesn't.