Two Pointers trick