Upstart interview question

max array lc coding question