The program has the following output:
coll: 1 2 3 4 5 6 7 1 2 3 4 5 6 7
subcoll: 3 4 5 6
subcoll found starting with element 3
subcoll found starting with element 10
The next example demonstrates how to use the second form of the search() algorithm to find a
subsequence that matches a more complicated criterion. Here, the subsequence even, odd, and even
value is searched: