Pregunta de entrevista de Axon

Program was a LC graph theory style problem.