Pregunta de entrevista de Amazon

Clone Graphs dsa question in LC