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 } ; Console . WriteLine ( findMin ( a , b , n , k ) ) ; } }