Uber interview question

Max consecutives ones and two's