Write a story about a time-traveling detective who solves a mystery from the past that changes the course of history