Scientists have figured out a key part of Mars' history after examining a meteorite believed to date back 4.5 billion years.