Pergunta de entrevista da empresa ADT

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