I've checked the logic with the latest implementation and it should pass.