Would be really helpful if you could help with a better solution or fault in my code to accommodate all test cases.
Getting one test case wrong
for test case like
5
1 2 3 5 6 7
you get
1 3 7 2 5 6
debug for this
Thank You very much for helping out!!
1 Like