In dialogue, ending punctuation marks should go

inside the quotation marks.

outside of the quotation marks.

wherever they feel most right.

at the beginning of the quotation.