Amazon interview question

Find the maximum element in the given sliding window.