Next even permutation of a number

medium
Last edited: September 13, 2025