Palindrome Check

Easy

📝 Description

Check if a string reads the same forwards and backwards

Input Format

A single string

Output Format

"true" if palindrome, "false" otherwise

Constraints

String length ≤ 1000

🔍 Sample Input

racecar
            

✅ Sample Output

true
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run