Pregunta de entrevista de ADT

Write a method that takes in an array and finds out if the array contains consecutive numbers or not