Reverse linked list in fixed-size groups | Microsoft Interview Question