Axon interview question

Program was a LC graph theory style problem.