Driver function
public static void main ( String [ ] args ) { int arr [ ] = { 3 , 10 , 6 , 7 , 2 , 5 , 4 } , k = 4 ; int n = arr . length ; System . out . println ( findMinimumSwaps ( arr , n , k ) ) ; } }