Amazon interview question

maximum element in array of every k size window