Delete nodes where sum of root to node path is less than k