Sliding Window Average Leetcode Python