Search Algorithm with two areas of solutions
With no other given assumptions, it is a linear solution in the most optimal scenario. 
One can have better solution (binary search) in problems where all the values after first true are true. But if there is only one element, it is a O(n) solution.