Google Interview Question

implement cop-on-write string, combine two iterators