reverse and add in c