leetcode 2340 min adjacent swaps to make valid array c++ solution

Published --