1.2 Implement a function void reverse (char* str) in C or C++ which reverses a null-terminated string.
void reverse (char* str)