
    private static int EnterElementToCheck(int[] array)
    {
        int element = int.Parse(Console.ReadLine());


        if ((element == 0) || (element == (array.Length - 1)))
        {
            Console.WriteLine("This element has only one neighbour. Enter another one!");