Given an integer array nums and a window size k, slide a window of exactly k consecutive elements across nums from left to right, one position at a time.
Return an array containing the maximum of each window, in order. The result has nums.length - k + 1 entries.