0th test case not showing. It is failing for my program.
hi @anujeet.s try this: 7 1 1 4 2 3 1 2
order should not change ans will be 1 1 3 1 4 2 2