We know that, charges of same type repel each other and opposite charges attract each other.
From the given figure, we can observe that the particle (1) and particle (2) both moved towards the positive charge. Thus particle (1) and (2) are negatively charged.
Since, particle (3) moved towards the negative charge, hence particle (3) is positively charged.
The force on a charged particle in electric field is given as,
Where,
The force on a particle is also given as,
Where,
From equation (1) and (2), we get
Deflection of the particle is given as,
Where,
By substituting the value of
Since, the particle enters the field with the same horizontal velocity and they remains in the field for the same time, thus
Since, the deflection of the particle (3) is maximum, thus particle (3) will have the highest charge to mass ratio.