Interviews should be as close as possible to the work that the candidate would do if they join.
While that seems like a pretty tautological statement, it is unfortunately not always true. When interviewing as a software engineer, for example, you’ll run into places that lean heavily on algorithms