Solution:
Suppose first that the segment AB passes through one of the intersection points of C1 and C2, and let C be that point. Let also O, O1, O2 be respectively the centers of the circles C, C1, C2. The triangles OAB, O1AC and O2BC are isosceles and are similar (for example OAB and O1AC share a base angle). Therefore the opposite sides of the quadrilateral OO1CO2 are parallel and this quadrilateral is a parallelogram. Hence r=OA=OO1+O1A=O2C+O1A=r2+r1.
Conversely, suppose r=r1+r2. Construct the parallelogram OO1C′O2′ whose vertices C′ and O2′ lie on the segments AB and OB (it is clear that this can be done in a unique way). From the similarity of O1AC′, O2′C′B and OAB we get that O1C′=O1A=r1, from which it follows that C′ lies on the circle C1, and also O2′B=O2′C=OO1=OA−O1A=r−r1=r2, from which it follows that O2′=O2 and that C′ lies on the circle C2.
