Driver Code
public static void main ( String [ ] args ) { int A [ ] = { 2 , 4 , 6 , 1 , 5 , 3 } ; int B [ ] = { 6 , 5 , 4 , 2 , 3 , 1 } ; int N = A . length ; System . out . print ( minOperations ( A , B , N ) ) ; } }