Container exercise 1,2: use foreach syntax(iteration) to print each elements in a container(generic container)