[LintCode 212] Space Replacement [C++] [Runtime : 10MS]