Driver code
public static void main ( String [ ] args ) { int arr [ ] = { 3 , 6 , 7 , 13 } ; int n = arr . length ; if ( solve ( arr , 0 , 0 , n ) ) { System . out . print ( " YES " ) ; } else { System . out . print ( " NO " ) ; } } }