ByteDance Interview Question

Leetcode question: dynamic programming for alignment