Texas Instruments Interview Question

Bfs Dfs traversal of Graph