What is the mood of the sentence below?

“Upon hearing the fire alarm, walk calmly to the nearest exit.”

A. Indicative

B. Imperative

C. Interrogative

D. Subjunctive

B. Imperative