Solutions for "Cracking the Coding Interview, 4 Edition"