Dell Technologies interview question

I was asked to Implement the strtok function