Big O notation
Here, our input list is 5 items long, and for every selection our remaining options decreases by 1. In other words, our 5 inputs choose  items (or ). If our input is  cities long, then the number of outputs is ; in general, assuming that we go through every permutation, then we will require  loops to complete it.