The technical question they asked was to reverse a string without using a temporary char buffer (i.e. reversing the string "in place").
Anónimo
I wrote a swap() helper function, they said this is the answer they were looking for. /* something like this (pseudocode) */ i = 0; len = strlen(string); FOR i to (len - 1): swap( string[i], string[len - i - 1] )