Leetcode Window Function Javascript Mdn