結果 : sliding window problem in python