Leetcode Find All Palindrome Substrings In Bash