https://leetcode.com/problems/swap-adjacent-in-lr-string/
Variation of this problem. Was managed to solve, but I think I missed 1 edge case.
Best of Luck!