Driver code
public static void main ( String [ ] args ) { int arr [ ] = { 2 , 1 , 4 , 3 , 5 , 6 } ; int sum = 6 ; int n = arr . length ; System . out . println ( printAllSubsets ( arr , n , sum ) ) ; } }