[math-fun] Hungarian prisoner switch puzzle