DIRT → TDIR is obtained by moving the last letter to the front while retaining the order of the other three. Applying the same transformation to TRIM gives MTRI.