Answer
The starting material consists of 5 carbons (because the product also has 5 carbons). It has a halide on one end and OH on the other. The lone pairs on the O attacks the carbon attached to the halide and the halide leaves. The chain closes up to form a ring. The O then loses the H+ to the solvent to form the desired product.
Work Step by Step
See image for mechanism.