The organism that can reproduce both sexually and asexually from the options you provided is B) starfish.
Starfish can reproduce asexually through regeneration (where a limb can grow back), and they can also reproduce sexually by releasing eggs and sperm into the water for external fertilization. The other organisms listed typically reproduce only one way: sandhill cranes and dogs reproduce sexually, while many protists mainly reproduce asexually, although some can also reproduce sexually under certain conditions.