Pregunta de entrevista de Meta

Standard leetcode mediums, focus on tree and graph problems.