Added a dfs based problem.