A chain AB of length l is lying in a smooth horizontal tube so that a fraction h of its length l , hangs freely and touches the surface of the table with its end B. At a certain moment, the end A of the chain is set free. The velocity of end A of the chain, when it slips out of tube , is: