Implement The Iterative Depth First Search Algorithm To Solve The Same Problem