Pergunta de entrevista da empresa OfferUp

Graph search and Puzzle question