Sarvaha Systems interview question

Logic to remove node from binary tree through DFS and BFS way