Box8 Interview Question

Next permutation of given String Leetcode