At least four digits strictly alternate between rising and falling.
Sequences
Preparing the number lab…