PermMissingElem  problem solved.

Space complexity O(1)
Temp complexity O(n)  T(n*2)

I think I could remove one loop with a math formula. I'll fix it after review some math computer theory