Escape Room Problem

Arrange the 7 colored train cars (black, blue, green, orange, purple, red, white) between the engine and the caboose so that:

1) The red car is closer to the front of the train than the white car, which is closer to the front of of the train than the blue car.

2) The green, orange, and purple cars are not located next to one another.

3) There are exactly 3 other cars between the green and black cars.

4) The orange car is located somewhere between the white and green cars.

5) The red and black cars are next to one another.


The solution is here.