In our live interviews we let people use Google for syntax things, or just ask the interviewer, just not directly asking for the answer to the question itself. I'd actually be okay with someone using chat GPT for that during the interview!