Solve Exercise 5-16: directory-ordered `tail`