Interview question solutions primarily from the book cracking the coding interview