update solution for leetcode Reverse Nodes in k-Group