Maximum Palindromes

  • + 3 comments

    I don't think that the test cases are correct. For the second test case:

    abab 1 1 4

    The right answer according to HackerRank is 2. But I think that the right answer is 4: abab baba abba baab