record the problem in the book Craking the Coding Interview