Check if the String is a Palindrome or Not | Java | Coding Ninja