Techbro Software interview question

How will you iterate ‘List’?