when you apply to graduate school they don't ask you to solve calculus problems on a whiteboard to get the 'signal', the signal comes from 1) standardized tests 2) prior work 3) recommendations 4) behavioral interviews
One approach is to define a set of values and communication habits that you believe you need people to be aligned on. That way, you allow for natural variation outside of that and you avoid giving your culture-fit interviewers a vague task.
So basically you're asking for a HackerRank screening. In my experience, if your code doesn't pass 100% of all test cases you get automatically rejected. At least with a human interviewer, they can evaluate your thought process even if the code itself isn't quite correct. Trust me you don't want to me interviewed only by robots.