Two pointers, AC