Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array