Salesforce Interview Question

Tree question - find the boundary nodes of the binary tree: https://www.geeksforgeeks.org/boundary-traversal-of-binary-tree/