interview: implement a strtok()