Reverse linked lists, including k-group | NVIDIA Interview Question