All Nodes Distance K in Binary Tree

Implement solve for All Nodes Distance K in Binary Tree. Return the required output for the provided arguments.

Examples
Input: [[3,5,1,6,2,0,8,null,null,7,4],5,2]
Output: [7,4,1]
Hints

All Nodes Distance K in Binary Tree

Implement `solve` for **All Nodes Distance K in Binary Tree**. Return the required output for the provided arguments.