The way to do this is first to deal with the electrostatics of the problem i.e. figure out the nature of the repulsive force due to the charges. Based on the nature of this force we can then analyse the mechanics of the problem.
Electrostatics
Given the fact that this is a long rod we can assume that its length is much greater than

or

and so we can take it to be effectively infinite.
So assume the rod is of infinite length.
Note that the question states that

is the linear charge density which means it is the charge per unit length of the rod.
Consequently by symmetry arguments you should be able to see that the electrostatic repulsive force must be perpendicular to the length of the rod and so acting radially outwards.
To work out the force on

I used Gauss's Theorem (otherwise known as a special case of Stoke's Theorem) with Maxwell's law of electromagnetism regarding divergence of electric field as it's the easiest way of working it out for me. Thus the electrostatic repulsive force,

, is given by
where

is the distance from the rod's center radially outwards to B.
However I know that you are only 16 and so this is perhaps too advanced a technique so alternatively the force can be found by integration of the force from Coulomb's law as follows. To do this we consider cylindrical slabs of the rod of length

(

-axis along the axis of the rod) which carry charge

. For convenience we have the origin of the

-axis at the centre of the rod directly above

at its initial position. As I stated earlier from symmetry arguments we only need to integrate over the component of the force which is perpendicular to the z-axis i.e. radially outwards from the rod. Hence the force due to the slab from Coulomb's law is

,

,
and integrating we find

.
Using the substitution

we have
as stated earlier.
Mechanics
Now we know that the electrostatic force is in the same direction as gravity so we can treat this in much the same way as we would if there was only a gravitational force.
Ordinarily if the particle was anchored to the rod then the velocity would be given by the kinetic energy of

being equal to the potential energy lost. However, for this problem

is not anchored and so the kinetic energy gained must be shared between the ring

and particle

. To determine in what proportion the kinetic energy is shared between the two note that the net force acting on

(due to gravity and electrostatic repulsion) only ever acts vertically down and so the system of

and

cannot have any change in their lateral (parallel to the rod) momentum. In other words the momentum of

and

parallel to the

-axis must be equal and opposite.
This means that if

has speed

and

has lateral speed

in the opposite direction then
Now we need to compute the potential energy lost which is made up of gravitational PE of

and electrostatic PE. The electrostatic PE is given by the work done,

, to take

from distance

away from the rod to the initial point so

.
Hence the total KE must be
so if the speed of

when the string is vertical is

then we have

.
so
![\color[rgb]{0,0,1} \boxed{v^2 = \frac{2}{3} g l + \frac{Q \lambda}{6 \pi \epsilon_0 m} \ln \left( \frac{l+r}{r} \right)} \color[rgb]{0,0,1} \boxed{v^2 = \frac{2}{3} g l + \frac{Q \lambda}{6 \pi \epsilon_0 m} \ln \left( \frac{l+r}{r} \right)}](http://www.mathhelpforum.com/math-help/latex2/img/b8bce2b13938e28de15458aa719dc70f-1.gif)
.
Finally to find the tension in the string we simply use Newton II to relate the centripetal acceleration to the weight of

and the tension,

, so

,
so
![\color[rgb]{0,0,1} \boxed{ T = \frac{10}{3} m g + \frac{Q \lambda}{3 \pi \epsilon_0 l} \ln \left( \frac{l+r}{r} \right) + \frac{Q \lambda}{2 \pi \epsilon_0 (r+l)} } \color[rgb]{0,0,1} \boxed{ T = \frac{10}{3} m g + \frac{Q \lambda}{3 \pi \epsilon_0 l} \ln \left( \frac{l+r}{r} \right) + \frac{Q \lambda}{2 \pi \epsilon_0 (r+l)} }](http://www.mathhelpforum.com/math-help/latex2/img/ad1bd7788a68e7cface80aaff7c9d522-1.gif)
.