Generate a N size Array where MEX of every K sized Subarray is X
Given three integers N, K and X. The task is to construct an array of size N where MEX of every K sized subarray is X. Print the constructed array elements, if not possible print -1. Examples: Input: N = 4, K = 3, X = 2Output: 1 3 4 1Explanation: Subarray of size K = 3 are: {1, 3, 4} and {3, 4, 1} a