I give contractors a coding question related to the job. Unlike LeetCode, it isn’t really challenging (not even fizzbuz), just a test that they can learn a few APIs (that are given descriptions) and write down code. You’d be surprised how many candidates freak out at that point. Unfortunately, it’s often needed for the role.