Frage im Vorstellungsgespräch bei Microsoft

A leet code medium question about using dynamic programming for array manipulation