Civil war I think not sure sorry if it's wrong
Answer:
2nd option is the answer to your question
John Tyler became president when president William Henry died in office
Millard Fillmore became president when Zachary Taylor died in 1850
Andrew Jackson became president when Abraham Lincoln was assassinated