implemented the solutions for (1) maximum palindromic substrings; (2) minimum number of palindromes in a string