Construting array from given array with some constraints
Given an array of N elements, `A[0 .. N - 1]`, Produce an array B such that:

     B[i] = min (A[i], A[i+1], ..., A[i+K-1]). 

(The array B will have exactly (N-k+1) elements.

Time complexity s'd be better than O(N*k)
Construting array from given array with some constraints
===

Given an array of N elements, `A[0 .. N - 1]`, Produce an array B such that:

     B[i] = min (A[i], A[i+1], ..., A[i+K-1]). 

(The array B will have exactly (N-k+1) elements.

Time complexity s'd be better than O(N*k)