Given an array, the difference between the elements is one, find if the 'key' element is present or not.Example:Array: {5, 6, 7, 6, 5, 4, 3, 4, 5, 6}Key: 4