Figure 4.3
Example of running a simple program to duplicate an input string