$\begin{aligned}
& \mathrm{V}^2=0+2 \mathrm{g}(\mathrm{S}-\mathrm{x}) \
& \mathrm{V}^2=2 \mathrm{g}(\mathrm{S}-\mathrm{x})
\end{aligned}$
At B, Potential energy =mgx
$\begin{aligned}
& \mathrm{mgx}=3 \times \frac{1}{2} \mathrm{mv}^2 \
& \mathrm{gx}=\frac{3}{2} \times 2 \mathrm{g}(\mathrm{S}-\mathrm{x}) \
& 4 \mathrm{x}=\mathrm{S} \
& \mathrm{x}=\frac{\mathrm{S}}{4}
\end{aligned}$
⇒V=2 g×43 S=23gS