You know the trolley problem, where there’s a trolley on a track where it will hit and kill five people, but there’s a switch that will move it onto another track with only one person. The ethical dilemma is basically whether it is okay to proactively take a life in order to save five other lives. It’s a no-win situation, sort of like the Kobayashi Maru test from Star Trek.
A young James T. Kirk foiled the Kobayashi Maru by reprogramming the computer, changing the rules of the test in order to make possible a winning scenario. Now, this two-year-old future Starfleet Captain has done something similar to resolve the trolley problem.