Of course you recall that story: in a dangerous lose-lose scenario, you change the rules, break the rules.
This, found at American Digest, reminded Mrs. BD of Kirk's KM Test as a student at Starfleet Academy. In this case, thinking outside the box - inside the box, as it were: