CTCI chapter 1 solutions