Revature interview question

Write a program that checks if a string is a palendrome.