結果 : prefix sum algorithm in python