Write a story about a time-traveling detective who must solve a murder mystery in three different time periods