solve the clone graph problem.