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