Walmart Global Tech interview question

All Nodes Distance K In Binary Tree Leetcode_863