Returns size of maximum sized subset if there is a subset of set [ ] with sun equal to given sum . It returns - 1 if there is no subset with given sum .
static int isSubsetSum ( int set [ ] , int n , int sum ) {