Function to return the minimum number of characters of the given binary string to be replaced to make the string alternating
< ? php function minReplacement ( $ s , $ len ) { $ ans = 0 ; for ( $ i = 0 ; $ i < $ len ; $ i ++ ) {