What is the most elegant way to get all possible variations of a string where two adjacent letters are switched? For Example, if we have the string \'stack\' th
\'stack\'