AppsFlyer interview question

Generate a 10 numbers random string that every number appear once