reverse and strcat using pointers