What event inspired Francis Scott key to write “The Star-Spangled Banner”?

A. the burning of the white house and the capitol
B. the defeat of the british at baltimore, maryland
C. the british invasion of eastern maine
D. andrew jackson’s victory at new orleans