If the wire XY is slightly displaced and released, it executes simple uarmonic motion due to force of repulsion produced between the current carrying wire.
Acceleration of the wire, a = -ω2y
Time period of oscillation of the wire,
T = 2π\(\sqrt{\frac{d}{g}}\)