Quad interview question

Various array manipulation questions