Wipro interview question

Two sum and the sliding window