update reverse.c