Problem
1. Write a program that makes use of a stack to read in a single line of text and write out the characters in the line in reverse order.
2. Write a program that reads a sequence of integers of increasing size and prints the integers in decreasing order of size. Input terminates as soon as an integer that does not exceed its predecessor is read. The integers are then printed in decreasing order.