An uniform flexible chain of mass m and length l 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