Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 3 , 6 , 7 , 13 } ; int n = arr . Length ; if ( solve ( arr , 0 , 0 , n ) ) { Console . Write ( " YES " ) ; } else { Console . Write ( " NO " ) ; } } }