Function to find all the unique partitions remSum = remaining sum to form maxVal is the maximum number that can be used to make the partition
void solve ( int remSum , int maxVal , int idx , int & count ) {