AppsFlyer Interview Question

Generate a 10 numbers random string that every number appear once