I need a function generateAllStrings(n, alphabet) to do something like this:
generateAllStrings(n, alphabet)
generateAllStrings(4, [\'a\',\'b\']) >>> [\"aaaa\", \"aaab\",
>>> [''.join(i) for i in itertools.product("ab",repeat=4)] ['aaaa', 'aaab', 'aaba', 'aabb', 'abaa', 'abab', 'abba', 'abbb', 'baaa', 'baab', 'baba', 'babb', 'bbaa', 'bbab', 'bbba', 'bbbb']