Solution to Cracking the Coding Interview 4ed