Calling for after choosing the current index value
v . Add ( arr [ n - 1 ] ) ; int y = printAllSubsetsRec ( arr , n , v , sum - arr [ n - 1 ] ) ; v . RemoveAt ( v . Count - 1 ) ; return Math . Min ( x , y ) ; }