Bloomberg interview question

Given an Array, fold the array N times.