Partion of string into four parts such that their sum is maximum possible.

I have tried this question and haven’t been able to solve it. So I need a help or a hint maybe.