Third requirement doesn't verify even if it is correct, checked against all the example inputs and a couple more of my own. Can't see where my mistake is.