Thanks 🙂
Initially, I think everyone goes for the most intuitive & most obvious solution which I think is OK because our first aim should be to solve the problem.
Later when you need to improve it, it is always good to think and apply the programming paradigms (especially where there are NO conditions on any type of space/time complexities) 😀