Loading Company...
This is a verified interview question from Ceat. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Check if a String is a Palindrome" covers key patterns like Strings.
"### Problem Write a program to check if a given string is a palindrome or not. A palindrome is a string that reads the same backward as forward. ### Input The input is a single string. ### Output Print 'Palindrome' if the input string is a palindrome, otherwise print 'Not a palindrome'. ### Constraints - No explicit constraints provided. ### Example - Input: 'radar' - Output: Palindrome"
Join thousands of developers practicing for Ceat.