Which of the following is an often-hereditary condition characterized by intrusive thoughts and compulsions to perform specific actions?

A) Bipolar Disorder
B) Obsessive-Compulsive Disorder
C) Post-traumatic Stress Disorder
D) Social Anxiety Disorder