Question

I’m confused about the first step, changing the vicinal dibromide to an alkyne. Can someone explain the mechanism? I understand the second step with Lindlar’s catalyst.