Challenge #4
Palindrome Test!
Part #1 – Create a dynamic array of characters and use cin.getline to allow the user to input a ‘word’. Check if the word is a palindrome (i.e. reads the same forwards and backwards).
Part #2 – Use the string library to allow the user to input a string and then check if it is a palindrome.
—
For both parts you do not need to worry about capitalisation, punctuation or white space!