Recall the Bubblesort algorithm of Exercise 2.22. Suppose we have $n$ cards labeled 1 through $n$. The order of the cards $X$ can be the state of a Markov chain. Let $f(X)$ be the number of Bubblesort moves necessary to put the cards in increasing sorted order. Design a Markov chain based on the Metropolis algorithm such that, in the stationary distribution, the probability of an order $X$ is proportional to $\lambda^{f(X)}$ for a given constant $\lambda>0$. Pairs of states of the chain are connected if they correspond to pairs of orderings that can be obtained by interchanging at most two cards.