Although I’d assert the row of houses runs both left to right *and* right to left (after all, you can walk up and down the same street).
Also, any viable configuration is one where rule 4 is satisfied (the green house is on the immediate left of the white house) so that imposes one hard limitation on the left-to-right ordering. And when you factor in balancing it out with all the other rules, the only way you can satisfy all of them ends up being left to right as the problem solution states in my post.
If you were to invert the houses such that their ordering was 5, 4, 3, 2, 1 instead of 1, 2, 3, 4, 5 then you would contradict rule 4’s statement that the green house is on the immediate left of the white house.
If you can show me an alternative configuration that satisfies all of the rules then I’d love to see it.