Robinhood interview question

A continuous subset in array