Moderators and Interviewers will learn if a candidate can end an interview or not.
Inside the interview window, only the code written in the code editor can be modified by the candidate.
However, the End Interview button will be exclusively available only on the Interviewer's side.
Therefore, the candidate will not be able to end an interview.
You can refer to the following image to understand how the interview window appears to the Interviewer:
Now, you can also refer to the following image to understand how the interview window appears on the candidate's side: