contestada

What is the error in the following sentence: "While shaving, the razor cut my chin"?
А) "While shaving" is in the wrong place in the sentence.
B) It has a dangling modifier.
C) It is a good sentence.
D) It uses the wrong article, "the.""​