Palindrome

Note

A palindrome is a string which remains unchanged when reversed.

eg: “madam”, “12321”, “mom” etc.

Java

Python