Print true if the given string is a palindrome (i.e. if it reads the same both left-to-right and right-to-left), false otherwise.
true
false
E.g. for car the program should print false, whereas for racecar it should print true.
car
racecar