https://videosashka.com/watch/4FZtJ8420m8/maximum-swaps-leetcode-670-python