Mandip, let's think about it. Why would the outer layer form from the middle layer? The skin develops from the ectoderm, as does the pituitary gland. The pancreas develops from the rndoderm.
What's left? Yep, the reproductive system, so B is your answer.