Function to calculate maximum length of substring containing only zero
public static int subzero ( String s , int k ) { int ans = 0 , curr = 0 ; int len = s . length ( ) ; char [ ] str = s . toCharArray ( ) ;