Returns maximum sum from subset of nodes of binary tree under given constraints
int getMaxSum ( node * node ) { if ( node == NULL ) return 0 ; map < struct node * , int > mp ; return getMaxSumUtil ( node , mp ) ; }