Media.net Interview Question

Next permutation using same digits