Question d’entretien chez Amazon

TopK Frequent elements, Maximum path sum in a tree