Meta Interview Question

A leetcode problem about graphs