reverse-nodes-in-k-group.cpp grammar