Amazon Interview Question

Find the maximum element in the given sliding window.