edge case 1 is failing?
Can you try with this input?
1 2 3 4 5
The expected output is 1 2 3 4 5 itself.
Thanks I got it now.
Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.