Capital One Interview Question

Two sum, sliding window problem