Question d’entretien chez TikTok

Medium graph/DP problem with recursion