Wipro Interview Question

Two sum and the sliding window