Implementation subsequence() method + tests.
Implement the flatMap() method.