AKUNA CAPITAL interview question

problem solving question similar to LeetCode problems about Min Swap