Deutsche Bank interview question

arrays and graph traversal techniques