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

Hint

Use the predicates prefix and suffix to define sublist.

The following picture illustrates how prefixes and suffixes are related to sublists.

Solution

Back to the exercise.