Mass of cube is ${a^2}\sigma ,$ its weight $ = {a^3}\sigma g$
Let $h$ be the height of cube immersed in liquid of density $\sigma$ in equilibrium then, $F = {a^2}h\,\rho \,g = Mg = {a^3}\sigma \,g$
If it is pushed down by y then the buoyant force $F' = {a^2}(h + y)\rho \,g$
Restoring force is $\Delta F = F' - F = {a^2}(h + y)\sigma \,g - {a^2}h\,\sigma \,g$
$ = {a^2}y\,\rho \,g$
Restoring acceleration $ = \frac{{\Delta F}}{M} = - \frac{{{a^2}y\rho \,g}}{M} = - \frac{{{a^2}\rho \,g}}{{{a^2}\sigma }}y$
Motion is $S.H.M.$
==> $T = 2\pi \sqrt {\frac{{{a^3}\sigma }}{{{a^2}\rho \,g}}} = 2\pi \sqrt {\frac{{a\sigma }}{{\rho \,g}}} $
