I am reading Daniel Huybrechts Complex Geometry. I don't understand how these two maps are defined.
The description of the sheaf $\mathcal{O}(D)$ is given in the answer
https://math.stackexchange.com/a/1749343/414708
My knowledge of sheaf theory and algebraic geometry is limited. Could you please tell me how these maps are defined.

First of all you might check this. There are many posts about exact sequences of hypersurfaces. Two small remarks:
Edit: Explaining every detail is 2 chapters in Hartshorne but: The line bundle $\mathcal{O}(D)$ has global sections $s_i$ sucht that their zero locus $(s_i)_0$ define hypersurfaces $Y_i\subset X$ which is "linear equivalent" to $Y$. If you're new to all of this, don't go too hard on this and think of $Y_i \sim Y$ like homotopic equivalence in algebraic topology. The two hypersurfaces are somehow equivalent in an algebraic geometric sense (they differ by multiplying with a rational function).