Solve Exercise 4.5 - Part II: Implement sequence in terms of traverse