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 formula_21 items (or formula_22). If our input is formula_14 cities long, then the number of outputs is formula_24; in general, assuming that we go through every permutation, then we will require formula_10 loops to complete it.