For this to work, all numbers have to be different. The time variable shows how long it took for the list to be sorted.