Microsoft interview question

revers k linked list in leetcode