Dayforce Interview Question

Determine if an array of numbers is sequential