FactSet interview question

Given an arraylist, reverse the first n elements and print the entire arraylist.