Leetcode 2229. Check if an Array Is Consecutive | Hello Interview