1231. Divide Chocolate
Given an integer array `chocolate` representing a chocolate bar (a row of chocolate squares) and an integer `k`, divide the bar into `k + 1` contiguous pieces by making `k` cuts. Each piece has a total sweetness equal to the sum of the squares in that piece.