Pergunta de entrevista da empresa Databricks

Giving N graphs, write a function that merges N graphs randomly