Pregunta de entrevista de Fieldwire

Graph leetcode question in 1-hour LeetCode-style interview