I don't love giving coding interviews, but we use CoderPad nowadays, which is pretty reasonable for this task, IMHO. Acceptable editor, you can run your code, etc. And as the interviewer, I can replay the session afterward if I want to retrace the path the candidate took.