Check if a String is a Palindrome

Company: CEAT

Difficulty: easy