Driver Code
public static void main ( String [ ] args ) { int A [ ] = { 12 , 11 , 10 , 13 } ; int B [ ] = { 7 , 10 , 6 , 2 } ; int N = A . length ; int K = 3 ; if ( checkSubsetSum ( A , B , N , K ) ) { System . out . print ( " YES " ) ; } else { System . out . print ( " NO " ) ; } } }