Xtremum Solutions interview question

Sum of subset problem