NavList thread: R: Solutions to Gray's 100 Problems(Problem 1-1)