Nasuni interview question

Simple whiteboard question with arrays