two pointers diff is k