Pregunta de entrevista de PortSwigger

How do you know that AI is generating the code correctly?