Pergunta de entrevista da empresa Couchbase

LeetCode: 31. Next Permutation (Interviewer focused more on approach rather than actual solution)