Hacker Earths September Circuits 6th problem Partitioning binary Strings

Can anyone provide correct explanation or editorial for this problem from september circuits…
https://www.hackerearth.com/practice/algorithms/dynamic-programming/2-dimensional/practice-problems/algorithm/partitioning-binary-strings-857646e9/description/

2 Likes