Subpalindrome exercise Carcking The Code Interview