Sliding Window Maximum

Not able to pass my code for a test case on leetcode…can u help me figuring out whats wrong?