How Would a Buddhist Monk Solve the Classic “Trolley Problem”?

Facing the dilemma of letting five people die or killing one instead, what is “right action”?