ex. 3.24 - subsequence
ex. 3.24 - subsequence - tailrec