Two Pointer to slove the problem of two elements that two pointes pointed.

Sliding Window to slove the problem of all elements that in the window.