OA/Hackerrank:
Question was given in the hackerrank platform. Given the number of nodes, the number of edges, and the
█████████████████████████████████
█████████████████████████████████████████████████████████████████
█████████████████████████████████
█████████████████████████████████████████████████████████████████
███████████████████████
█████████████████████████████
███████████████████████████████
████████████████████████████████
████████████████████████████████████