Ad
  • Custom User Avatar

    For example if passed "Hannah" it should return 6

    That alone should tell you the letters in the palindrome are not unique.

    $aaabbbccddd_!jJpqlQx_.///yYabababhii_ -> aaabbbcjqyidddiyqjcbbbaaa 25 chars.