Answer:
Let us consider that the verticle displacement at the equilibrium position is
At equilibrium
When it is displaced further by a displacement x, the buoyant force is
The net restoring force then becomes,
[We have taken mod value]
So, we get