Intel Corporation interview question

Graph Algorithm question Smart pointers