Check Palindrome in Groovy

The Palindrome string/text is a special sequence and it will be same while reading from left to right or right to left, moreover Palindrome is a CASE-INSENSITIVE in nature. The commonly available palindromes are

  1. Integer Palindrome
  2. String Palindrome