This question compares two ways foreign money enters a country, so it helps to first fix the plain difference: FDI buys into a business directly, FII buys shares on the stock market.
Only option B correctly separates the two kinds of investment.
So the correct answer is option B.