Question d’entretien chez Microsoft

Question on DP based problem.