when u cut a bar magnet perpendicular to its length the pieces have half of their original lengththat is 2l/n.here n is the number of parts i.e, 2
now time period T = t/n
T=time period of oscillation of each part; t=4s ;n=2
T=4/2=2s we can get this from time period formula