SigFig interview question

Manipulate array list.