My question is similar to Replicate a Portfolio with Given Payoff but I am not quite sure how to apply this to my problem.
A portfolio of European call options on an asset $S_T$ has a payoff function given by $V_T$ where: $$V_T = 0,\ S_T < A$$ $$V_T = S_T - A , \ A \leq S_T \leq B$$ $$V_T = B - A, \ S_T > B$$
(i) Construct a portfolio $H_1$ of European call options with this payoff function.
(ii) Use Put-Call parity to construct a portfolio $H_2$ of European put options with this payoff function.