Amazon Interview Question

maximum element in array of every k size window