CCI 1.5 - Implemented third solution

Question: 1.5 -- Write a method to replace all spaces in a string with
‘%20’