Adobe interview question

Swap the doubly linked elemnts every element s after k elemnts