Exercise 5-11 (Stream.unfold)