Create a Stack Machine to validate if a string is a palindrome. You must validate the input string using the Stack machine ( I have provide a Python Stack Machine class that you may use, or you can create your own in any language you wish)
Here are the Stack Machine Rules
The determination that the input string is in fact a palindrome is that the input string is used and the Stack is empty, any other condition and the string is not a palindrome. In addition to verifying the string,I also want a display of the results from each step, similar to the following:
***** I attached the question because it’s include pictures. please see attachment. *****
