Infosys interview question

1. DFS using Stack 2. BFS using Stack