Array

Depth first search is traversal algorithm to traverse a tree.