Solutions of the Cracking the Coding Interview. (JAVA)