Function to find maximum sum subset with equal number of positive and negative elements
static int findMaxSum ( int [ ] arr , int n ) { List < int > a = new List < int > ( ) ; List < int > b = new List < int > ( ) ;