Array How Do I Roll A List Or Numpy Array Until A Certain Condition

Array How Do I Roll A List Or Numpy Array Until A Certain Condition