fast and slow pointers,AC