UST interview question

How Depth First Search Works