Distinct Numbers In Window Leetcode Python