d-Matrix Interview Question

Leetcode Hard question on Binary Trees