Media.net interview question

lazy typist and array sum