Refactor to better match chapters in Cracking the Coding Interview.