Im writing a function that returns true if a wordis a palindrome or not. (spelled the same backwards and forwards like racecar and tacocat). My approach to this was to try and create a separate array of characters thatis reverse of the original string. So if they put in say word it takes word and creates a new array called b and goes backward from word. So itd be array b d,r,o,w. Then id try to compare the indexes and if the indexes are equal I return true. I just cant get it to do that though. I don't know how to begin at the end of word without using end() because I get errors when I use erase like I am in my code.