Amazon interview question

clone a graph which has cycles