I am unable to write the code of this question

please help me to build the concept of solving these types of question.

@akki56756_bab14f919dbad123 hiii see this i hope this will u make understand

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

You have reopen the doubt
Is your doubt not resolved yet??

@asaurabh_26 ya i also see that please tell if your doubt solved or not

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

you have provided the wrong solution for this question

@Rachit8090 kindly resolved the doubt of @akki56756_bab14f919dbad123
he has reopened the doubt again

@akki56756_bab14f919dbad123 sorry i didnt see my mistakes according to question
check this

it is not printing in lexicographical order.

@akki56756_bab14f919dbad123 but i guess it is not asking in question for you to print in lexicographic if u want so I edit this code

@akki56756_bab14f919dbad123
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.