A program that swaps numbers in list based on supplied values.