Pregunta de entrevista de ByteDance

Leetcode question: dynamic programming for alignment