If you don't know how to pivot an interview question when the interviewee is already familiar with it, you aren't qualified to perform interviews.
If the goal is to find how they approach problem solving, you can adapt by asking about increasingly difficult aspects of the problem. If that isn't the goal, your hiring practices are wrong.