CureMD interview question

Reverse a numeric digit. Remove repeating characters for an array.