Max Score After Split

You are given a binary string s containing only '0' and '1' characters. Split it at some index i into two non-empty parts: a left part s[0..i-1] and a right part s[i..n-1].

The score of a split is the number of '0' characters in the left part plus the number of '1' characters in the right part. Return the maximum score achievable over every valid split, where the split index runs from 1 to n - 1 so both parts stay non-empty.

Examples
Input: "011101"
Output: 5
Hints

Max Score After Split

You are given a binary string `s` containing only `'0'` and `'1'` characters. Split it at some index `i` into two **non-empty** parts: a left part `s[0..i-1]` and a right part `s[i..n-1]`.