Second Problem Minimum Good Permutation of September challenge - My all the test cases are passing locally and i have done thorough checking of my code but then also I am getting Wrong answer.Here is link to my code
Please help…I am unable to find where its going wrong