• + 0 comments

    Python solution: def saveThePrisoner(n, m, s): return (s + m - 2) % n + 1