public:
string replaceSpace(string iniString, int length) {
// write code here
string s="";
for(int i=0;i<length;i++){
if(iniString[i]==' ') s+="%20";
else s+=iniString[i];
}
return s;
}
};