Meta interview question

A cumsum array problem, don't remember the exact question