def make_interleave(arr1, arr2, permutation):
    iters = [iter(arr1), iter(arr2)]
return ''.join(next(iters[i]) for i in permutation)
make_interleave('ab', 'cde', [1, 0, 0, 1, 1])
How can I interleave or create unique permutations of two stings (without recursion)