It's the companies that should change their interview process.
I don't know the solution to this; you have a similar problem in education where students generate their homework with AI, teachers grade it with AI, and you have to question whether the institution makes sense anymore.