Apple interview question

Given a 2-D array, find the average of a sub-array