Domanda di colloquio di Keysight Technologies

Write a code to check whether a string is a palindrome or not.