Exercise using Queues
A palindrome is a string that reads the same in eitherdirection: left to right or right to left. For example, “kayak” isa palindrome, as is “I saw I was I.” A well-known palindromeregarding Napoleon Bonaparte is “Able was I ere I saw Elba” (theisland where he was sent in exile). Write a program using C ++ thatreads a string, places each letter both in a queue and onto a stackand determines whether it is a palindrome.
Expert Answer
An answer will be send to you shortly. . . . .