Driver code
public static void main ( String [ ] args ) { int n = 5 ; int k = 12 ; int a [ ] = { 2 , 1 , 4 , 3 , 5 } ; int b [ ] = { 4 , 3 , 2 , 3 , 1 } ; System . out . println ( findMin ( a , b , n , k ) ) ; } }