The aim is to get each row\'s consecutive 1s from a random matirx. I have to record the start index and end index which the length of 1s is at least 2. I was quite strugglli