What did you learn? Two pointers works on sorted arrays where you're searching for pairs satisfying some condition.
The trick is that moving one pointer has a predictable effect. You can eliminate candidates without checking them.
No extra space needed. You're just moving indices. Two pointers appears in many forms: finding pairs, removing duplicates, partitioning arrays. The pattern stays the same.