Superhuman Interview Question

Deep copy of a graph