I have seen some similar questions but not exactly what im asking, so: there cannot be a repeated digit in any of the other elements of the list, and if there's one repeated, only one must appear.
there's an input like: [12,22,12,2,34,25,9]
the output most be: [12,34,9]
the 2, 22, 25,12 cannot be used because the first 12 have a 2 in it
I have made it to the point that i have [12,2,34,25,9]
, but I'm not able to remove the repeated numbers. I have tried to separate each number to compare between each other, but i have not managed to do it.