A “Jeopardy!” contestant eked out an unlikely victory Tuesday after losing nearly all of his money on the last question.