Recursion subsequences

sir what should i do if there is repetition of characters eg aabc
here when i print all subsequences there will be repetion of some subsequences likea,ab etc but i want to print all different subsequences

Hey Rahul, you can use set to store all the subsequences as set stores a string only once.