Palindrome And String Reversal

Palindrome And String Reversal

Statement

Create a program to Reverse a String / Number(The input can be "12121" or "hello") check if given input is palindrome or not and also return Reversed input.

Example 1:

INPUT

12121

OUTPUT

12121 is reverse of 12121
12121 String is Palindrome

Example 2:

INPUT

hello

OUTPUT

olleh is reverse of hello
hello String is not Palindrome

Solution :

To Run the code copy input to stdin input