Upon submitting the code in the editor it shows fail in testcases but the output is same as excpected So, can you please help
this is the link for the code
Challenges doubt error on submitting code
your logic is absolutely correct just a slight error in the condition of for loop…it should be i<=l-1 and not i<l-1
Thank you very much for your help