Question d’entretien chez TikTok

two Dynamic programming question and one easy array question.