[Solved] Jay has a chocolate box that contains different types of chocolate
![[Solved] Jay has a chocolate box that contains different types of chocolate [Solved] Jay has a chocolate box that contains different types of chocolate](https://realcoder.techss24.com/wp-content/uploads/2022/12/Solved-Jay-has-a-chocolate-box-that-contains-different-types-of-chocolate-768x502.png)
Jay has a chocolate box that contains different types of chocolate represented by a lowercase character. Chocolates are arranged in a row. Jay wants to divide the row into pieces such that both the pieces have an equal number of…