Answer :
A because there should always be a comma between quotations and before or after the person who is talking.
Ex. "You should do that,"Mary warned.
Mary warned,"You shouldn't do that."
Ex. "You should do that,"Mary warned.
Mary warned,"You shouldn't do that."