Intel Corporation interview question

use c++ iterator to print out vector