I solved Next permutation and provided my approach in discuss page but Peoples are not able to see my page when I shared the link with them
Here is the link
https://leetcode.com/problems/next-permutation/discuss/1909918/4-step-explanation-linear-time-two-pointers