Leetcode Palindromic Substrings Gfg Practice Java