def MinimumSwaps(Queue): MinSwaps = 0 for i in range(len(Queue) - 1): if Queue[i] != i+1: for j in range(i+1,len(Queue)):