Robinhood Interview Question

A continuous subset in array