1-2 write code to reverse c-style string