Google interview question

DFS algorithm and its implementation with a programming language