My own solution to book Cracking the Coding Interview