Hackerrank Max Array Sum Python Function Parameters