General
Material
Lecture 1
Lecture 2
Lecture 3
Lecture 4
Lecture 5

Hint

X and Y are next to each other, if X is right of Y or if X is left of Y.

Solution

Back to the exercise.