Maximum Difference Between Adjacent Elements in a Circular Array
Check each element against the next one, wrapping from the last back to the first, and keep the largest absolute gap.
Check each element against the next one, wrapping from the last back to the first, and keep the largest absolute gap.