The initial energy is potential energy and the final energy is all potential
So mgh = 1/2 mv2 and v = sqrt(2gh)
But we need to know the height, h, in terms of θ and L. From giometry of the situation, we know that h = L - Lcosθ.
v = sqrt(2gL(1-cosθ))
Please consider a tutor. Take care.