Frage im Vorstellungsgespräch bei Rackspace Technology

Leetcode style easy-medium question on binary trees.