And obviously there will be some costs to the company, the test didn't develop itself, and there is likely a developer reviewing the code after completion.
In this case the developer is in a different city, the test appears to be designed to see if it is worthwhile to bring him in for further interview.