A uniform flexible chain of mass m and length 2l hangs in equilibrium over a smooth horizontal pin of negligible diameter. One end of the chain is given a small vertical displacement so that the chain slips over the pin. The speed of chain when it leaves pin is-
(A) √2gl
(B) √gl
(C) √4gl
(D) √3gl