Applying the trolley problem to self-driving cars and the ethical dilemmas they create.