Netflix interview question

Pseudo code and code for a custom graph algorithm and performance analysis in the big O notation.