Deutsche Bank Interview Question

arrays and graph traversal techniques