my answers to Cracking the Code Interview