CureMD Interview Question

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