Your goal should be solving the problem first and foremost

See:

References

Navarro, Douglas. 2021. “Don’t Just Write Code, Solve Problems.” Medium. https://betterprogramming.pub/dont-just-write-code-solve-problems-b5c4ed3f9d0d.
Tabacu, Raul. 2020. “You’re Not Writing Code, You’re Solving Problems.” Lanraccoon. https://lanraccoon.com/2020/youre-not-writing-code-youre-solving-problems/.