given a number return a sorted array with all the unique nubmers that could be formed with those digits