Solution to problem 4.

Given a string, replace all spaces with %20 . Assume the string is long enough
to fit the extra characters.