Hackerrank Max Array Sum Python Function Exercises