Question

Write a function to check whether given string is palindrome?

Login to Submit

Examples

palindrome means the word is same when read from the start or end. eg mam, radar, madam.


Input: "cat"
Output: false

Input: "mam"
Output: true

Input: "radar"
Output: true