Hints: Equal Multisets (Easy Version)
Answer to Hint 2: Fix a residue $r$. Look at indices $r, r+k, r+2k, \ldots$. Compare $a$ at those positions.
If not all $a$ on that arithmetic progression are equal, what must hold for $b$ on those indices once the array is cool?
NO.
Answer to Hint 4: If all $a$ on that progression are equal to some value $v$, then every length-$k$ window only forces that all known $b$ on that progression agree with each other (and with $v$ when revealed). If some $b$ is fixed, all $-1$s on that progression take that value; if none are fixed, leave them for later.
What is still unchecked after resolving every residue class this way?
Answer to Hint 5: The first $k$ positions form the initial window. After substitutions, treat the multiset of assigned values on $b[1..k]$ against $a[1..k]$: each known $b_i$ must use up one copy of that value in the multiset of $a$’s first $k$ elements (in the easy version, $a$ is a permutation, so multiplicity is easy to track).
If some required value is impossible, answer NO; else YES.