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