Variable Size Sliding Window Algorithm Javascript Compiler W3schools