Solutions to the book Elements of Programming Interviews