Question

Write a program which takes a string as an input and tells if the string is palindrome OR not.
Example
Input Output
[“ana”] ana is a palindrome
[“kana”] kana is not a palindrome
Solve the program on https://www.onlinegdb.com/online_java_compiler