## Find Index of zero to be replaced to get maximum length of consecutive ones

Given an array containing only zeros and ones, find the index of zero to be replaced with one to get the maximum length of consecutive ones. Test Case Example Input : 1 0 0 1 0 1Sample Output: 4 Test Case Explanation If we replace zero located at index 1, the maximum length of consecutive1s … Find Index of zero to be replaced to get maximum length of consecutive ones