Bloomberg Interview Question

Swap Adjacent Nodes on Leetcode