Consider elements dx and dy on rods 1 and 2, at distances x and y from the ends. The given line charges have uniform charge density.
Charge contained uptil r=a/2 = (1)
Charge contained from r=a/2 to r=a = (2)
Net charge in the sphere = (1) + (2)
Calculate potential at r=a. That will give u the potential at r=0 (it should be a conducting sphere)