It is given in the question that the formula of volume of cone is

Where V is the volume, r is the radius and h is the height.
And we have to find an expression for h.
First we multiply both sides by 3, and on doing that we will get

Now to isolate h, we have to get rid of pi r square by dividing.

Therefore the correct option is B.