An 8-year-old girl who received a heart transplant solved the murder of her donor after having nightmares about the crime.