Google Interview Question

Implement typical graph algorithm in both recursive and iterative manner