Summing up one's life in terms of "production" and "consumption" is such a broken way of looking at things.
I will be kind to people. I will be patient with them. I will try to help them. I'll try to make the world a better place in all the little ways I can. How much or how little I "produce" has no bearing on whether my life will be weighed as good or bad.
And since we're quoting incredible TV shows...
"The success or failure of your deeds does not add up to the sum of your life. Your spirit cannot be weighed. Judge yourself by the intentions of your actions, and by the strength with which you faced the challenges that have stood in your way. The Universe is vast and we are so small. There is really only one thing we can ever truly control... whether we are good or evil." - Oma Desala, Stargate SG-1
Because otherwise you make morality a game and people are distracted from the deeds by the point system (The Good Place is another good TV show that has a funny satire of this).
Even very smart people aren't going to waltz in and be able to code fast enough to solve harder interview problems without practicing.
So, people who can pass algorithmic interviews are smart people who also had the hunger/drive to study up/practice some.