add in replace string interview question solution