title: standing nearby elements in array - python
body: <p>Fill the array with random numbers in interval from 1 till 5. Elements standing nearby. Example:</p>
  
  <p>Array:
  1 2 3 3 2 1</p>
  
  <p>Out: 3</p>
  
  <p>Example:</p>
  
  <p>Array:
  1 2 3 4 2 1</p>
  
  <p>Out: no</p>
  
  <p>Everything that we do on the Internet does not work correctly, for example, if there is 3 3 3 2 4 on the input, then 3 3 will be shown what needs to be done so that I do not know. I ask for help!</p>