Whats my error if i am trying using stl?
Hello @shubhankar1996.dob1 the sample test case in the above code check that.
your code is not even producing the correct result for that test case as well.
Hello @shubhankar1996.dob1 i have corrected your code and now it is giving the correct ouput.
you were not takign the input in the correct manner.
if you have any doubt you can ask here:
Happy Learning!!