Lifesight interview question

Design Pattern Coding question around Graph traversal