Function to print the array which contains the unique partitions which are used to form the required sum
void print ( int idx ) { for ( int i = 1 ; i < idx ; i ++ ) { cout << dp [ i ] << " ▁ " ; } cout << endl ; }