Program 4a: getopt()