> because people who ace them suck at writing code
Is there such a high correlation? I used to do a lot of hackerrank-style problems for fun, a few years ago. If I had to evaluate my ability to write code back then: pretty crappy.
I was good at writing functions, I was bad at writing programs.