Java program to find indices of contiguous runs of a string 

Ex: String 00110111
Ouput: 0 2 5 
contiguos runs -> 00, 11, 111 which start at index 0,2,5 respectively