Exercise 5-16: Stream.hasSubsequence