add solution for reverse nodes in k group