The Trolley Problem: How AI and Self-Driving Cars Face This Ethical Dilemma