Replace all spaces in a string with `%20`. (Cracking the Coding Interview: typically assume enough buffer at end of string).
One line string s (may contain spaces).
Output string with spaces replaced by "%20".
Example 1:
Input:
s = "Mr John Smith"
Output:
Mr%20John%20Smith
Explanation:
All spaces replaced by "%20".