Open asmtoha opened 1 year ago
though it's giving expected output
For the last token of the sentence, it is trying to check the next token.. Hence the error. Stop the iteration with last before element and it works..
Here is my solution: