Determine if an array of numbers is sequential.
Treat an array as sequential if its values can be rearranged into distinct consecutive integers with no gaps or duplicates. Implement def is_sequential(nums):, returning a boolean. The input is a nonempty array of integers, and the output is True or False.
def is_sequential(nums):