The wording of the question is vague, but I will assume that the objective is to get a zero/discount curve via bootstrapping.
The premise of a bootstrapping is straightforward: fit a zero curve so that the shortest maturity bond is priced perfectly. Since we don’t have any other information, assume the curve is flat up to the first maturity; the curve matches the bond yield (modulo quote conventions). In other words, we have the zero curve defined to the maturity of bond #1.
(Pricing the bond perfectly means that if we discount the cash flows of the bond by our zero curve, the sum of the discounted values equals the market price.)
We then target the next maturity. We extend the zero curve so that it is priced perfectly. We will note that the initial coupons are discounted by the already fitted curve, the later coupons and principal by the new curve. Find the discount curve extension that results in bond #2 being priced correctly. That is, the zero curve is now defined to maturity #2.
Repeat for bond #3, ... N.
Issues arise.
- There are any number of ways that the curve can be interpolated, including how to define the curve. (Interpolate between knot points, functional definition, etc. Do we interpolate forward rates or zero rates? Etc.)
- Bonds can be mis-priced, and the curve ends up severely distorted.
Finally, the code/mathematical formulae are complex. Even an ugly approximations take a lot of code.