Check if sum of elements of set1 is less than or equal to sum of elements of set2
if sumSet1 <= sumSet2 : NEW_LINE sumSet1 = sumSet1 + i NEW_LINE else : NEW_LINE sumSet2 = sumSet2 + i NEW_LINE return abs ( sumSet1 - sumSet2 ) NEW_LINE