Sounds a little bit like the stories from Feynman, e.g.:
https://enlightenedidiot.net/random/feynman-on-brazilian-edu...
The students had memorized everything, but understood nothing. Add in access to generative AI, and you have the situation that you had with your interview.
It's a good reminder that what we really do, as programmers or software engineers or what you wanna call it, is understanding how computers and computations work.