Solving the ethical dilemma of autonomous driving

An out-of-control train was running on the rails. Five people were tied up on the track it was traveling on. The train was about to run over them. At this point, you are standing by the joystick that changes the track of the train. If you pull this lever, the train will switch to another track. However, there was also a person tied up on the other…