Solutions to the questions in Cracking The Code Interview