Adding fourth problem's solution in strings chapter in cracking the coding interview book