Dropbox Interview Question

Matrix row sum data structure