Question d’entretien chez Amazon

Inverting a binary tree question