Add solution to 'reverse nodes in k-group'