Pergunta de entrevista da empresa Infosys

First question is like bipartite graph.