1)You will be given a string str. 2)You have to check if the given string is palindrome or not. 3)A palindrome is a sentence that reads the same backward or forward.
Input Format
A String str
Output Format
true or false
Constraints
1<=length of string<=100
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
ramar
Output
true