Solutions to "Cracking the coding interview" fifth edition