I need to write a function which iterates through alphabet (a-z) like this:
(here is an example for a-c)
a
b
c
aa
ab
ac
ba
bb
bc
ca
cb
cc
aaa
aab
aac
... and so on. (until the word has 5 characters)
any idea how to do this? I guess I need some recursive function.
No need for recursion!