The correct answer is B, as Karl Marx's philosophy was not influenced by any religion, since he was an atheist (although he had Jewish origins).
Regarding religion, Marx declared in 1844 that this was "the opium of the people," and that people should renounce it in order to reach true happiness.
According to Karl Marx, religion is a tool used by the ruling classes, by which the masses can soon alleviate their suffering through the act of experiencing religious emotions. It is in the interest of the ruling classes to instill in the masses the religious conviction that their present suffering will lead to possible happiness. Therefore, as long as the public believes in religion, they will not try to make a real effort to understand and overcome the true source of their suffering; social inequality and exploitation.