A  min_k_swap.cpp