Based on your knowledge of stacks (use either the array or the linked nodes stack), instantiate a stack of characters and implement the following functions:
1 - isPalindrome: Checks if a given string is a palindrome or not.
2 - PrintSameOrder: prints the stack contents in the same order in which they were pushed into it.