Horizontal interview question

Arrays and various operations on Array