• + 0 comments
    def permutationEquation(p):
        # Write your code here
        temp = {value: index + 1 for index, value in enumerate(p)}
        result = []
        for x in range(1, len(p)+1):
            i = temp.get(x)
            j = temp.get(i)
            result.append(j)
            
        return result