Remove all nodes which don’t lie in any path with sum >=k