Bloomberg Interview Question

Coding problem: Next Permutation on Leetcode