CCI 1.5 - Implemented first solution

Question: 1.5 -- Write a method to replace all spaces in a string with
‘%20’.
CCI 1.5 - Implemented second solution
Revert "CCI 1.5 - Implemented second solution"

This reverts commit 77aaa2ffb1eedf4744517f0979160b336720361e.
Revert "Revert "CCI 1.5 - Implemented second solution""

This reverts commit 5babe00bfedd88ad61b4d9fe22fc4b79729edfd6.