Domanda di colloquio di Rackspace Technology

Leetcode style easy-medium question on binary trees.