In this challenge, you have to establish if the digits of a given number form a straight arithmetic sequence (either increasing or decreasing). A straight sequence has an equal step between every pair of digits.
Given an integer n, implement a function that returns:
"Not Straight" if n is lower than 100 or if its digits are not an arithmetic sequence."Trivial Straight" if n has a single repeating digit.n digits are a straight arithmetic sequence.straight_digital(123) ➞ 1
# 2 - 1 = 1 | 3 - 2 = 1
straight_digital(753) ➞ -2
# 5 - 7 = -2 | 3 - 5 = -2
straight_digital(666) ➞ "Trivial Straight"
# There's a single repeating digit (step = 0).
straight_digital(124) ➞ "Not Straight"
# 2 - 1 = 1 | 4 - 2 = 2
# A valid sequence has always the same step between its digits.
straight_digital(99) ➞ "Not Straight"
# The number is lower than 100.