Skip to main content

Exercise 4: Palindrome

A palindrome is a series of characters which is the same spelled forward and in reverse. For the purpose of this exercise, a capital letter is equal to its lowercase equivalent. Given a string, return whether or not the string is a palindrome. Return true if it is, and false if it is not.

Input: ''
Output: true

Input: 'Stop Pots'
Output: true

Input: '-3,-2,-1,0,1,2,3'
Output: false

Sketch:

Script: