1.Given a binary string, the task is to find maximum substring length with equal number of 0's and 1's.
2.You have to complete the function print() which should print the maximum length of such substring.
Input Format
Single line containing a binary string
Output Format
Print substring length with equal number of 0's and 1's.
Constraints
1<=|String length|<=10^5
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
1100011
Output
6