How to swap first element of character array with last element

in this code of subsequence generation,my test cases are failing.i observed that order of my out array is reversed but i am unable to swap my first element with last element and so on… :frowning:


addeed comments where u can make the possible changes

1 Like

Thank you ma’am :slight_smile:

1 Like