Bacteria protect themselves from viruses by fragmenting viral DNA with ____________?

Bacteria protect themselves from viruses by fragmenting viral DNA with ____________?

A. Ligase
B. Endonuclease
C. Exonuclease
D. Gyrase