Domanda di colloquio di Amazon

clone a graph which has cycles