I think reaching the correct solution is one of the least important parts of a technical interview.
I've interviewed candidates who will write the equivalent of enterprise level fizz buzz [0] and get to a correct solution, and candidates who will write much simpler code, but not quite solve the problem (it's a longer problem than fizzbuzz). I feel like I get better signal off the latter, as we can spend more time discussing their ideas, Vs writing boilerplate.
I've interviewed candidates who will write the equivalent of enterprise level fizz buzz [0] and get to a correct solution, and candidates who will write much simpler code, but not quite solve the problem (it's a longer problem than fizzbuzz). I feel like I get better signal off the latter, as we can spend more time discussing their ideas, Vs writing boilerplate.
[0] https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...