Will be better @nirmal_mukherjee if you can provide a zoomed image of the question. ️
As far as I can see, u can use the formula :
This is the magnitude of Electrostatic force between two rods of charges Q_1,Q_2 and that are separated by a distance a.
Can show you the proof if you need.
Do let me know if u have any doubts.