You are given an array of N integers. Your task is to calculate the MEX of each window of k elements, from left to right.
The MEX is the smallest non-negative integer that does not appear in the array.
For example, the MEX for [3, 1, 4, 3, 0, 5] is 2.
The first line contains two integers and : the number of elements and the size of the window.
Followed by integers : the contents of the array.
Print n - k + 1 values: the MEX values for each window of size k.