two pointers,AC