solution for reversing nodes in k group

Signed-off-by: Mory Mobile <mory.mobile@gmail.com>