Microsoft interview question

Write the C++ strtok method