If you waste your only evaluation period on a question obviously regurgitating an answer, interviewers notice and can't evaluate you fairly.
If they just want to watch you program, they might still ask you to go ahead, at least you've put the ball in their court.
If they think you weren't forthcoming, that might be an automatic rejection