For example, the input geeksquiz will output ziuqskeeg and
for the input "apples" the output will be selppa.
Explanation:
Stack operates in LIFO (Last In First Out) order.
A pop() operation removes items in a reverse order in
the manner in which they were inserted.
Comments
Leave a comment