solution to Reverse Nodes in k_Group