Interview Problem Maximum element in window of size k


In the above code why do we print first 3 elements separately?