Question d’entretien chez Yandex

Problems on two pointers and trees