@@ -0,0 +1,1068 @@
+def unique(string):%0A    counter = %7B%7D%0A    for c in string:%0A        if c in counter:%0A            return False%0A        else:%0A            counter%5Bc%5D = 1%0A    else:%0A        return True%0A%0Adef reverse(string):%0A    result = %5B%5D%0A    for i in range(len(string)):%0A        result.append(string%5B-(i+1)%5D)%0A    return %22%22.join(result)%0A%0Adef is_permutation(str1, str2):%0A    if len(str1) != len(str2):%0A        return False%0A    counter = %7B%7D%0A    for i in range(len(str1)):%0A        if str1%5Bi%5D in counter:%0A            counter%5Bstr1%5Bi%5D%5D += 1%0A        else:%0A            counter%5Bstr1%5Bi%5D%5D = 1%0A        if str2%5Bi%5D in counter:%0A            counter%5Bstr2%5Bi%5D%5D -= 1%0A        else:%0A            counter%5Bstr2%5Bi%5D%5D = -1%0A    for k in counter:%0A        if counter%5Bk%5D != 0:%0A            return False%0A    else:%0A        return True%0A%0Adef replace_spaces(array, end):%0A    rshift = len(array) - end - 1%0A    for i in range(end, -1, -1):%0A        if array%5Bi%5D == %22 %22:%0A            array%5Bi+rshift-2:i+rshift+1%5D = %5B%22%25%22, %222%22, %220%22%5D%0A            rshift -= 2%0A        else:%0A            array%5Bi+rshift%5D = array%5Bi%5D%0A    return %22%22.join(array)%0A

Rename module and add replace_spaces.