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 ) ) { Console . Write ( " YES " ) ; } else { Console . Write ( " NO " ) ; } } }