Well, well, well.. Leo is not finished yet. On his grand success this year, he threw a grand party where a lot of people are invited along with you too. Now, before the party begins he puts everyone to a task. In the given task he would like to take an array of 'N' integers and ask everyone individually to divide the array into two subsets such that the difference of sum of the elements of two subsets is maximum. Now, your task is to give this answer to Leo in order to start the party ahead.
For test case 1: Two subsets are {1} and {2, 3, 4} and hence the difference of the sum of the two subsets is 9 - 1 = 8.
Problem Author: Suraj Prakash