Write a function called trim that takes in a C-style string
(non-constant -- the function will change the string), and trims off any
leading or trailing white space in the string. For example, if the
following call is made:
char str[30] = " Hello ";
trim(str);
The result will be that str now stores the string
"Hello".