Determine Maximum Path Length in Directed Acyclic Graph | Amazon