Pregunta de entrevista de TikTok

A backtracking question and ML knowledge