Return to tradition[1].
We had a couple of people shrug it off and do it in notepad and csc quite happily. They were of course hired.
The challenge is figuring out how to provide a novice (high school students) with a skill appropriate challenge to assess them on that is also not trivially solved by the use of an LLM, and you likely can't. Or you go the IT route and restrict what's available on and from the computers (see my comment about how ACM and IEEE contests used to do things, they may still run that way but I'm uninvolved so don't know).
It was referred to as "book code."
I love this comment because in 20 years coding with no AI will be "coding like it's 2020 again".