Solutions to Problems from Cracking the Coding Interview