Genesys Interview Question

LC medium level graph theory problem. JavaScript or Java only.