My own solution to Cracking the Coding Interview