Sample code for "Coding Interviews: Questions, Analysis & Solutions"