Easy Python (List Clone)
Use list( ) to prevent allocating the same memory location for both the variables\n\nclass Solution:\n    def reinitializePermutation(self, n: int) -> int:\n   
Use list( ) to prevent allocating the same memory location for both the variables\n```\nclass Solution:\n    def reinitializePermutation(self, n: int) -> int:\n        perm=[i for i in range(n)]\n        op=list(perm)\n        arr=[0]*n\n        c=0\n        nn=n//2\n        \n        while arr!=op:\n            for i in range(n):\n                if i%2 == 0:\n                    arr[i] = perm[i // 2]\n                else:\n                    arr[i] = perm[int(nn + (i - 1) // 2)]\n            perm = list(arr)\n\n            c+=1\n        return c\n```
['Python', 'Python3']