https://www.codechef.com/APRIL19A/problems/SUBREM
https://cs.stackexchange.com/questions/106709/remove-k-nodes-and-there-corresponding-subtree-to-get-maximum-profit?newreg=3d7efa129190484b83865aff90e098ce
Someone asked the question in cs stack exchange…