It's a style choice: neither is "right" or "wrong". It's often said that putting the period inside the quotes is the American style and putting it outside is the British style.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.