The correct option is B the middle lobe of the pituitary
The middle lobe of the pituitary or the pars intermedia secretes a hormone called melanocyte stimulating hormone (MSH). It acts on the melanocytes (melanin-containing cells) of the skin and hence regulates pigmentation.
The anterior lobe of the pituitary secretes prolactin, growth hormone, FSH, LH, TSH, and ACTH.
The posterior lobe of the pituitary secretes oxytocin and vasopressin.
The pineal gland secretes the hormone melatonin.