Sponsored
Use these hints if you're stuck. Try solving on your own first.
Keep track of the last integer which is not equal to <code>value</code>.
Use a queue-type data structure to store the last <code>k</code> integers.
Solve with full IDE support and test cases