output is given wrong in the question
Can you please check the question/
hi @akki56756_bab14f919dbad123
ques and its o/p is correct… there is some error in ur code…
refer this -->
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.