Pergunta de entrevista da empresa d-Matrix

dynamic programming to partition array with minimum sum difference.