Question d’entretien chez Dynatrace

a small algorithm task traversing DOM tree